
from tortoise.models import Model
from tortoise import fields

class SongSheet(Model):
    id = fields.BigIntField(pk=True, generated=True)
    user_id = fields.BigIntField()
    title = fields.CharField(default='新歌单', max_length=64)
    description = fields.CharField(default='', max_length=255)
    create_time = fields.DatetimeField(auto_now_add=True, null=True)
    update_time = fields.DatetimeField(auto_now=True, null=True)
    del_flag = fields.BooleanField(default=False, null=True)

    class Meta:
        table = 't_song_sheet'
